import request from '@/api/request'
const sysId = '1'
const type = 0
// 用户登录信息
export function login(data) {
  data['sysId'] = sysId
  data['type'] = type
  return request({
    url: '/emrweb/user/authLogin',
    method: 'post',
    data,
  })
}

// 请求节点
export function loadNode(data) {
  data['sysId'] = sysId
  data['type'] = type
  return request({
    url: '/emrweb/user/loadNode',
    method: 'post',
    data,
  })
}
// 获取用户信息
export function getInfo(params) {
  return request({
    url: '/emrweb/user/getUserOrgMenu',
    method: 'get',
    params,
  })
}

// 获取用户信息
export function getAllMenus(params) {
  return request({
    url: '/emrweb/menu/menus',
    method: 'get',
    params,
  })
}

// 校验账号是否注册
export function validAcc(params) {
  return request({
    url: '/emrweb/user/validUserName',
    method: 'get',
    params,
  })
}
